package com.dingyx.ps.feign.api;

import com.dingyx.ps.feign.hystrix.TsServiceHystrix;
import com.dingyx.ps.config.FeignConfiguration;
import com.dingyx.ps.model.ReturnT;
import com.dingyx.ps.model.thirdpart.TsOrderReturnPO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 功能描述: ts服务
 *
 * @Param:
 * @Return:
 * @Author: wrj
 * @Date: 2021/11/26 2:53 下午
 */
@FeignClient(value = "xianniu-ts", fallback = TsServiceHystrix.class, configuration = FeignConfiguration.class)
public interface TsService {

    /**
     * 椰云返回结算完成，根据工单通知交付云结算完成
     * @param po
     * @return
     */
    @PostMapping("/tsSfWorkOrder/receiveAndSettlement")
    ReturnT updateOrder(@RequestBody TsOrderReturnPO po);


}
